Part Number Hot Search : 
475K0 IRS2136 824DH EEFKXXX MPS4354 2002A A3955SLB HN9C05FT
Product Description
Full Text Search
 

To Download ADMC330BST Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rev. 0 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of analog devices. a admc330 one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781/329-4700 world wide web site: http://www.analog.com fax: 781/326-8703 ? analog devices, inc., 1997 single chip dsp motor controller functional block diagram arithmetic units shifter mac alu memory sport 0 sport 1 program memory address timer data memory 1k 3 16 program rom 2k 3 24 program ram 2k 3 24 watch- dog timer 8-bit pio 12-bit 3-phase pwm analog inputs 2 3 8-bit aux pwm program memory data data memory address data memory data adsp-2100 base architecture serial ports program sequencer data address generators dag 1 dag 2 features seven analog input channels acquisition synchronized to pwm switching frequency three-phase 12-bit pwm generator programmable deadtime and narrow pulse deletion 2.5 khz minimum switching frequency ecm control mode output control for space vector modulation gate drive block (pulsed pwm output capability) hardwired output polarity control external trip input two 8-bit auxiliary pwm timers synthesized analog output 39 khz frequency 0 to 99.6% duty cycle eight bits of digital i/o port bit configurable as input or output change of state interrupt support 20 mips fixed point dsp core powerful program sequencer zero overhead looping conditional instruction execution independent computational units alu multiplier/accumulator barrel shifter multifunction instructions single-cycle instruction execution (50 ns) single-cycle context switch adsp-2100 family code and function compatible with instruction set enhancements 16-bit watchdog timer programmable 16-bit interval timer with prescaler two synchronous serial ports full debugger interface 2 bootstrap protocols via sport 1, serial and uart memory configuration 2k 3 24-bit word program ram 1k 3 16-bit word data ram 2k 3 24-bit word program rom general description the admc330 is a low cost single chip dsp microcontroller optimized for stand alone ac motor control applications. the device is based on a 20 mhz fixed-point dsp core (adsp- 2171) and a set of motor control peripherals including seven analog input channels and a 12-bit three-phase pwm generator. the device has two auxiliary 8-bit pwm channels and adds expansion capability through the serial ports and an 8-bit digital i/o port. the admc330 has internal 2k words program ram, and 1k words data ram, which can be loaded from an external device via the serial port. there are also 2k words of internal program rom, which includes a monitor that adds software debugging features through the serial port. the admc330 core combines the adsp-2100 base architec- ture (three computational units, data address generators and a program sequencer) with two serial ports, a programmable timer, extensive interrupt capabilities and on-chip program and data memory. in addition, the admc330 supports new instructions, which include bit manipulationsbit set, bit clear, bit toggle, bit test new alu constants, new multiplication instruction (x squared), biased rounding and global interrupt masking, for increased flexibility.
C2C rev. 0 admc330Cspecifications (v dd = 5 v 6 10%, gnd = sgnd = 0 v, t a = C40 8 c to +85 8 c, unless otherwise noted) parameter min typ max units conditions/comments analog-to-digital converter charging capacitor = 1000 pf 2.5 khz sample frequency signal input 0.3 3.2 1 v resolution 12 bits no missing codes converter linearity 2 4 bits zero offset 50 200 mv channel-to-channel comparator match 25 mv comparator delay 600 ns current source 9.5 11 13.5 m a current source linearity 3 % electrical characteristics v il logic low 0.8 v v ih logic high 2 v v ol low-level output voltage 0.4 v i ol = 2 ma v ol low-level output voltage (xtal) 0.5 v i ol = 2 ma v oh high-level output voltage 4 v i oh = 0.5 ma i il low-level input current C10 m av in = 0 v i ih high-level input current 10 m av in = v dd i dd supply current (power-down mode) 5 ma i dd supply current (static) 60 ma clock input clock (t ck ) 100 ns 10 mhz clock input (clkin) dsp clock (t ck /2) 50 ns 20 mhz dsp clock (clkout) reference voltage output voltage level 2.2 2.55 2.9 v 100 m a load output voltage change t min to t max 20 mv 12-bit pwm timer counter resolution 12 2 bits edge resolution 100 ns 10 mhz clkin programmable deadtime range 0 12.5 m s 10 mhz clkin programmable deadtime increments 200 ns 10 mhz clkin programmable pulse deletion range 0 12.5 m s 10 mhz clkin programmable pulse deletion increments 100 ns 10 mhz clkin pwm frequency range 2.5 khz 10 mhz clkin pwmsync pulsewidth (t crst )2 m s 10 mhz clkin gate drive chop frequency range 0.08 5 mhz 10 mhz clkin auxiliary pwm timers resolution 8 bits pwm frequency 39 khz 1/256 of 10 mhz clkin clock notes 1 signal input max v = 3.5 if v dd = 5 v 5%. 2 resolution varies with pwm switching frequency (10 mhz clock), 25 khz = 8 bits, 2.5 khz = 12 bits. specifications subject to change without notice.
admc330 C3C rev. 0 warning! esd sensitive device caution esd (electrostatic discharge) sensitive device. electrostatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge without detection. although the admc330 features proprietary esd protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality. absolute maximum ratings* supply voltage (v dd ) . . . . . . . . . . . . . . . . . . C0.3 v to +7.0 v digital input voltage . . . . . . . . . . . . . . . . . . . . . C0.3 v to v dd analog input voltage . . . . . . . . . . . . . . . . . . . . . C0.3 v to v dd analog reference input voltage . . . . . . . . . . . . C0.3 v to v dd digital output voltage swing . . . . . . . . . . . . . . C0.3 v to v dd analog reference output swing . . . . . . . . . . . . C0.3 v to v dd operating temperature . . . . . . . . . . . . . . . . . C40 c to +85 c lead temperature (soldering, 10 sec) . . . . . . . . . . . . +280 c *stresses greater than those listed above may cause permanent damage to the device. these are stress ratings only; functional operation of the device at these or any other conditions greater than those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. ordering guide temperature instruction package package model range rate description option ADMC330BST C40 c to +85 c 20 mhz 80-lead plastic thin quad flatpack (tqfp) st-80
admc330 C4C rev. 0 pin pin pin no. type name 1nc 2 i/p vaux3 3 o/p refout 4 sup v dd 5 gnd gnd 6 bidir pio7 7 bidir pio6 8 bidir pio5 9 bidir pio4 10 bidir pio3 11 bidir pio2 12 bidir pio1 13 bidir pio0 14 o/p aux1 15 o/p aux0 16 sup v dd 17 i/p pwmtrip 18 gnd gnd 19 nc 20 nc pin pin pin no. type name 21 nc 22 sup v dd 23 gnd gnd 24 nc 25 o/p pwmsync 26 o/p cl 27 o/p ch 28 o/p bl 29 o/p bh 30 o/p al 31 o/p ah 32 nc 33 sup v dd 34 gnd gnd 35 gnd gnd 36 gnd gnd 37 gnd gnd 38 gnd gnd 39 nc 40 nc pin function descriptions pin pin pin no. type name 41 nc 42 gnd gnd 43 gnd gnd 44 i/p xtal 45 i/p clkin 46 i/p pwmpol 47 i/p reset 48 gnd gnd 49 sup v dd 50 o/p clkout 51 gnd gnd 52 o/p dt1 53 bidir tfs1 54 bidir rfs1 55 i/p dr1a 56 i/p dr1b 57 bidir sclk1 58 bidir dt0 59 nc 60 nc pin pin pin no. type name 61 nc 62 nc 63 bidir tfs0 64 bidir rfs0 65 bidir dr0 66 bidir sclk0 67 sup v dd 68 gnd gnd 69 gnd agnd 70 i/p capin 71 o/p iconst 72 gnd sgnd 73 i/p v1 74 i/p v2 75 i/p v3 76 i/p vaux0 77 i/p vaux1 78 i/p vaux2 79 nc 80 nc pin configuration 80-lead plastic thin quad flatpack (tqfp) (st-80) 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 36 37 38 39 34 35 32 33 30 31 40 25 26 27 28 23 24 22 29 21 65 64 63 62 67 66 69 68 61 71 70 76 75 74 73 78 77 80 79 72 pin 1 identifier top view (not to scale) 9 8 7 6 5 4 3 2 1 20 19 18 17 16 15 14 13 12 11 10 nc nc vaux2 vaux1 vaux0 v3 v2 v1 sgnd iconst capin agnd gnd v dd sclk0 dr0 rfs0 tfs0 nc nc nc v dd gnd nc pwmsync cl ch bl bh al ah nc gnd gnd gnd gnd gnd nc v dd nc nc nc dt0 sclk1 dr1b dr1a rfs1 tfs1 dt1 gnd v dd gnd pwmpol clkout xtal clkin gnd gnd nc reset nc vaux3 refout v dd gnd pio7 pio6 pio5 pio4 pio3 pio2 pio1 pio0 aux1 aux0 v dd pwmtrip gnd nc nc admc330 nc = no connect
admc330 C5C rev. 0 the admc330 operates with a 50 ns instruction cycle time. every instruction can execute in a single processor cycle. the flexible architecture and comprehensive instruction set of the admc330 allow the processor to perform multiple opera- tions in parallel. in one processor cycle the admc330 can: generate the next program address fetch the next instruction perform one or two data moves update one or two data address pointers perform a computational operation this takes place while the processor continues to: receive and transmit data through the two serial ports decrement the timer independently the peripheral blocks can: generate three-phase pwm waveforms for a power inverter generate two signals using the 8-bit auxiliary pwm timers acquire four analog signals control eight digital i/o lines decrement the watchdog timer rom code functions the admc330 has a 2k boot rom that contains the following: monitor program: serial boot loader for otp rom or eeprom uart debugger interface and loader math utilities/tables: sine, cosine, tangent, inverse tangent, log, inverse log, square root, 1/x, 1/(sine rms), unsigned division, cartesian to polar conversion, interpolation the admc330 is similar to an adsp-2172 in its booting se- quence. the mmap and bmode pins are tied high, which enables the on-chip rom and starts execution of the monitor program on power-up or reset. the monitor program first at- tempts to boot load through sport1 from a serial memory device. the loader uses a two-wire (data and clock) serial proto- col. the admc330 provides a serial clock to the device equal to 1/20 of clkout. default input is from a xilinx xc1765d otp rom or atmel at17c65 eeprom; other devices are possible as long as they adhere to the loader protocol. if the serial load is successful, the code that was downloaded is ex- ecuted at the start of user memory space. failing a synchronous boot load, the admc330 monitor switches over to debug mode and waits for commands over sport1 from a uart. debug mode uses a standard rs-232 protocol in which only the data receive and transmit lines are used by the admc330. this interface is used by the visual dsp ? debugger, but can also be used by uart devices for boot loading programs. in addition to the monitor program, the rom contains the previously listed math utilities. these routines can be called from user applications. development system the adsp-2100 family development software, a complete set of tools for software and hardware system development, sup- ports the admc330. the system builder provides a high level method for defining the architecture of systems under develop- ment. the assembler has an algebraic syntax that is easy to program and debug. the linker combines object files into an executable file. the simulator provides an interactive instruction-level simulation with a reconfigurable user interface to display different portions of the hardware environment. a makeprom utility splitter generates prom programmer compatible files. the c compiler, based on the free software foundations gnu c compiler, generates admc330 assem- bly source code. the runtime library includes over 100 ansi- standard mathematical and dsp-specific functions. low cost, easy-to-use hardware development tools include an admc330-eval board and a windows based software debugger. this debugger can be run with either the admc330-eval board or the target system by communicating over a two-wire asynchronous link to a pc. functional description admc330 peripherals overview the admc330 set of peripherals was specifically developed to address the requirements of variable speed control of ac induc- tion motors (acim) and electronically commutated synchro- nous motors (ecm). they are memory mapped to a block in the dsp data memory space allowing single cycle read and/or write to all peripheral registers. the operation of the peripherals is synchronized to the dsp core by a clock hclk, which is derived from half of the dsp system clock. three-phase pwm generator 12-bit center-based pwm generator including program- mable deadtime and narrow pulse deletion. ecm crossover block. output enable block. hardwired output polarity control. external trip input. pulsed pwm output capability for transformer coupled gate. analog i/o two 8-bit pwm output timers(synthesized analog output). comparator based analog input acquisition. analog-to-digital conversion is accomplished via 4-channel single slope adc. digital i/o eight bits of programmable digital i/o configurable as interrupt sources. three-phase pwm generator the admc330 pwm controller is a self-contained program- mable waveform generator that produces pwm switching sig- nals for a three-phase power inverter. it includes a waveform timing edge calculation unit which allows the generation of six center based pwm signals based on only three duty cycle regis- ter updates every switching cycle. this minimizes the dsp software required to service the pwm controller and frees up processor time for the motor control law implementation. in the default configuration it produces the three-phase center based pwm waveforms required for three phase sinusoidal inverter. however, it can also be configured for space vector modulation schemes, or for controlling brushless dc motors (sometimes known as electronically commutated motors). it also has func- tions which simplify the interface to the power inverter gate drive and protection circuits. the pwm controller is synchronized to the dsp core by the hclk which runs at half the dsp clock frequency giving wave- form resolution of 100 ns with a 20 mhz dsp clock. there are visual dsp is a registered trademark of analog devices, inc.
admc330 C6C rev. 0 four configuration registers (pwmtm, pwmdt, pwmpd and pwmgate), which define basic waveform parameters such as the master switching frequency, deadtime, minimum pulsewidth, and gate drive chopping. there pwm output sig- nals on the pins ah through cl are controlled by the input registers (pwmcha, pwmchb, pwmchc and pwmseg) and the control pins pwmtrip and pwmpol. pwm controller overview the pwm controller consists of three units: the center-based timing unit, output control unit and the gate drive unit as shown in figure 1. the center-based pwm timing unit is the core of the pwm controller and produces three pairs of complemented and deadtime adjusted pwm waveforms as required for ac motor control. the output control unit is a signal switching unit that selects the appropriate pwm signals to be connected to the o utput pins based on the bits set in the segment register (pwmseg) as may be required for ecm control or some space vector modulation schemes. the gate drive block sets the logic polarity of the pwm on signal according to the polarity of the pwmpol pin to match the gate drive circuit requirement. it can also modulate the pwm on signal with a high frequency carrier (0.08 mhzC 5 mhz) if required for a transformer coupled gate drive circuit. the dsp-based control algorithm can be synchronized to the pwm generator by a hardware interrupt signal that is gener ated at the end of every pwm switching cycle. this same pwmsync signal is internally connected to the internal analog-to-digital converter and is also available at an output pin. finally, the hardware pwmtrip pin can be used to shut down the pwm controller in the event of a fault. center-based pwm timing unit the center-based pwm timing unit is a programmable timer that generates three pairs of fixed frequency pwm waveforms suitable for controlling a three-phase power inverter. the unit contains arithmetic circuits that calculate the pwm signal tim- ing edges from waveform parameters such as the pwm period, center-based pwm timing unit pwmtm pwmcha pwmdt pwmchb pwmchc clk sync reset hclk pwmsync interrupt signals timing control registers channel registers output control unit sync pwmseg output control register pwmgate gate control register gate drive unit clk ah al bh bl ch cl pwmpol pwmtrip pwmsync pwmpd gate control register figure 1. pwm controller overview dead time and the duty cycle for each inverter phase. there is no extra dsp software overhead once the duty cycle for each phase has been calculated and loaded into the pwm channel registers. the pwm timing unit produces three pairs of complemented variable duty cycle waveforms symmetrical about common axes of the form shown in figure 2. they are complemented wave- forms, which means that for any pair of pwm waveforms (ah and al), they can never both be on at the same time. they are deadtime adjusted, which means that for any pair of pwm waveforms, there is a delay between switching from being on in one waveform to being on in the complemented waveform. a pulse deletion function is implemented, which means that very narrow pwm pulses will not be generated. it is important to note that the deadtime compensation does not take place on the boundary between consecutive pwm cycles. thus both the low side and high side devices can switch on during the transition from a full-on state to any other state. this potentially volatile condition can be avoided by: ensuring that the device never enters to the full-on or full- off states, that is, pwmchx pwmtm C2 ( pwmdt + 1), with pwmpd = 0 using an external deadtime compensation circuit. there is an active high pwmsync pulse produced at the be- ginning of each pwm cycle to synchronize the operation of other peripherals with the switching of the power inverter. this signal is also internally connected to the adc block to initiate conversions, and to the dsp core to generate an interrupt. figure 2 shows the center-based pwm operation. the master switching frequency can range from 2.5 khz to 25 khz and is an integral fraction of hclk clock frequency. it is set by the value in the 12-bit pwmtm period register, which sets the total number of clock cycles in a pwm cycle. the required pwm period as a function of the desired master switching frequency ( f pwm ) and peripheral system clock fre- quency ( f hclk ) is given by: pwmtm = f hclk f pwm
admc330 C7C rev. 0 pwmdt start end pwmdt ah al bh bl ch cl pwmsync pwmdt pwmdt pwmdt pwmdt pwmchc pwmchb pwmtm pwmcha figure 2. three-phase center-based active low pwm waveforms for example, the hclk clock is 10 mhz. if 8 khz pwm waveforms are required, then pwmtm should be loaded with 10 mhz/8 khz = 1250. a value must be written to the pwmtm register before the pwm block can be used. the on time of each pair of pwm waveforms, e.g., ah and al, is set by the integer value in the duty cycle registers pwmcha, pwmchb and pwmchc. the deadtime between the active portions of complementary waveforms is set by the value in the deadtime register pwmdt and is subtracted from the value in the duty cycle register. the final deadtime adjusted fractional duty cycle for channel a for example is given by: d a = t aon t pwm = pwmcha pwmdt pwmtm the minimum pulsewidth delivered is set by the value in the pulse deletion register pwmpd. when the calculated high or low pulsewidth for any channel is less than pwmpd, the switching pulse is eliminated and the outputs are saturated one to 100% high, and the other to 100% low. output control unit the output control unit contains special features that allow the admc330 to be easily applied for the control of electroni- cally commutated motors (ecm) or brushless dc motors (bdcm). in these machines, only two motor phases are required to conduct simultaneously so that at most two power switches are turned on at any time. in order to build up current in the motor phases, it is necessary to turn on the upper switch in one phase and the lower switch in another phase of the inverter. the pwmseg register of the admc330 pwm block allows modification of the pulsewidth modulation signals from the center-based block in order to meet the requirements for ecm control. three bits of the pwmseg register (bits 6, 7 and 8) permit individual crossover of the three pwm signal pairs. for example, setting bit 8 will crossover the signals for phase a such that the high-side signal from the center-based block will ulti- mately appear at the low-side output pin (al). conversely, the low-side signal from the center-based block will appear at pin ah.
admc330 C8C rev. 0 similar modifications can be made to phases b and c using bits 7 and 6, respectively, of the pwmseg register. six bits of the pwmseg register (bits 0...5) are used to independently enable/disable any individual pwm output pins. for example, setting bits 0 and 1 high disables pwm outputs ch and cl, which keeps these outputs off over the full pwm period regard- less of the value in the pwmchc register. this feature is not only useful for ecm control, but is also required in some space vector modulation schemes. modifications to the pwmseg register only become effective at the start of each pwm cycle. in the transparent (default) mode, all bits in pwmseg are set low. consider the situation shown in figure 3 for operation of an ecm with the ah and bl power devices active. the pwm duty cycle registers, pwmcha and pwmchb, are programmed with the appropriate on-time value. since all three pwm regis- ters must be written to trigger an update of the pwm, it is neces- sary to write also to pwmchc. for this example, the particular value written to this register is unimportant. subsequently, crossover bit of the pwmseg register for phase b (bit 7) is set to enable crossover of the phase b signals. the pwm outputs for phase c high and low, phase b high and phase a low are disabled by setting bits 0, 1, 2 and 5 of the pwmseg register. in this example, the appropriate value for the pwmseg register is 0x00a7. in addition, high side chopping of the signal ah is enabled by setting bit 8 of the pwmgate register. midpoint pwmcha pwmchb pwmdt end start pwmdt center- based outputs ah al bh bl ch cl figure 3. pwm output waveforms for an ecm with inverter devices ah and bl active known limitation of the ecm block. modifying the pwmseg register while the pwm duty cycle transitions from a full-on state to any other state will cause both the high side and low side devices to switch on for 50 ns. this potentially volatile condition can be avoided by: disabling the pwm channel outputs during the transition from full-on to any other state. preventing the full-on condition namely limiting pwmchx to: pwmchx pwmtm C2 ( pwmdt + 1), with pwmpd = 0. preventing a pwmseg update operation during the transi- tion from full-on to any other state. gate drive unit the gate drive unit adds features that simplify the interface to a variety of gate drive circuits for pwm inverters. if a trans- former coupled power device gate drive amplifier is used, the active pwm signal must be chopped at a high frequency of up to 5 mhz. the chopped active pwm signals may be required for the high side drivers only or for both high side and low side. the gate drive chopping feature is enabled by bits 8 and 9 of the pwmgate register. setting bit 8 enables a chopped pwm signal on all high side output pins ah, bh and ch, setting bit 9 enables a chopped pwm signal on all low side output pins al, bl and cl. the gate chopping frequency is programmed using bits 0C5 of the pwmgate register. the gate drive chop- ping frequency is given by the following equation: f chop = f hclk 2 ( gatetm + 1) where gatetm is the 6-bit value in bits 0...5 of the pwmgate register. depending on the type of power device gate drive circuit used, either active high or active low, pwm signals will be required, so an external pwm polarity pin is provided. the polarity of the pwmpol pin determines the active polarity of the pwm out- put signals (i.e., a low pwmpol pin means active low pwm). this must be set by hardware because even though the admc330 will power up with all pwm outputs off, the correct polarity of an off pwm signal is a function of the gate drive circuit only. the level on the pwmpol pin is available in bit 2 of the sysstat register. external pwm trip in fault conditions the power devices must be switched off as soon as possible after the fault has been detected, hence an external hardware pwm trip input is provided. a low going pwmtrip pulse will reset the pwm block which will disable all pwm outputs. this will also generate a pwmtrip interrupt signal and cause a dsp interrupt. the pwmtrip pin is accessible through bit 0 of sysstat so that the dsp can determine when the external fault has been cleared. at this point, a full initialization of the pwm controller will be required to restart the pwm. adc overview the analog input block is a 12-bit resolution analog data acqui- sition system. a single slope type adc is implemented by timing the crossover between the analog input and a sawtooth refer- ence ramp. a simple voltage comparator is used to latch the output of a reference counter timer circuit when the crossover is detected. there are seven input channels to the adc of which three (v1, v2 and v3) have dedicated comparators. the remaining four inputs (vaux0, vaux1, vaux2 and vaux3) are multi- plexed into the fourth comparator channel. this allows four conversions per pwm period to be performed by the adc. the particular input signal that is fed to the fourth comparator input is selected using the adcmux0 and adcmux1 bits of the peripheral control register, modectrl. the settings of these two control bits in order to select the appropriate auxiliary ana- log input is shown in table i.
admc330 C9C rev. 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 pwmgate gatetm gate drive chopping frequency (f hclk ) /(2(gatetm+1)) low side gate chopping high side gate chopping 1 = enable 0 = disable 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 a channel crossover b channel crossover ch output disable cl output disable bh output disable bl output disable ah output disable al output disable 1 = disable 0 = enable 1 = crossover 0 = no crossover pwmseg c channel crossover figure 4. configuration of pwmseg and pwmgate registers table i. adc auxiliary channel selection modectrl (1) modectrl (0) select adcmux1 adcmux0 vaux0 0 0 vaux1 0 1 vaux2 1 0 vaux3 1 1 analog block the operation of the adc block may be explained by reference to figures 5 and 6. the reference ramp is tied to one input of each of the four comparators. this reference ramp is generated by charging an external timing capacitor with a constant current source. the timing capacitor is connected between pins capin and sgnd. the capacitor voltage is reset at the start of each pwm cycle using the pwmsync pulse, which is held high for 20 clkin cycles (t crst = 2 m s for a 10 mhz clkin). on the falling edge of pwmsync, the capacitor begins to charge at a rate determined by the capacitor and the current source values. an internal current source is made available for connection to the external timing capacitor on the iconst pin. an external current source could also be used, if required. the four input comparators of the adc block continuously compare the values of the four analog inputs with the capacitor voltage. each com- parator output will go high when the capacitor voltage exceeds the respective analog input voltage. adc timer block the adc timer block consists of a 12-bit counter clocked at a constant rate of hclk, equal to half the dsp clock rate. this gives a timer resolution of 100 ns at the maximum clkin frequency of 10 mhz. the counter is reset on the falling edge of the pwmsync pulse so that the counter commences at the beginning of the reference voltage ramp. when the output of a given comparator goes high, the counter value is latched into the appropriate 12-bit adc register. there are four adc registers (adc1, adc2, adc3 and adcaux) corresponding to each of the four comparators. at the end of the reference voltage ramp, all four registers should have been loaded with new values so that new conversion data is available to the controller after a pwmsync interrupt. the first set of values loaded into the output registers after the first pwmsync interrupt will be invalid since the latched value is indeterminate. for very low analog inputs, less than the mini- mum reference value, the comparator output will be perma- nently high and the output register will contain the code 0x000. also, if the input analog voltage exceeds the peak capacitor ramp voltage, the comparator output will be permanently low and a 0xfff code will be produced. this indicates an input overvoltage condition. refout iconst capin c sgnd vaux0 vaux1 vaux2 vaux3 adc timer block adc1 adc2 adc3 adcaux admux0 admux1 4-1 mux v3 v1 v2 pwmsync adc registers hclk adc1 adc3 figure 5. adc overview
admc330 C10C rev. 0 v1 pwmsync v vil comparator output t v c v cmax t crst t vil t pwm C t crst figure 6. analog input block operation adc resolution because the operation of the adc is intrinsically linked to the pmw block, the effective resolution of the adc is a function of the pmw switching frequency. the effective adc resolution is determined by the rate at which the counter timer is clocked. for a clkin period of t ck and a pwm period of t pwm , the maximum count of the adc is given by max count = t pwm t ck for an assumed clkin frequency of 10 mhz, the effective resolution of the adc block is tabulated for various pwm switching frequencies in table ii. table ii. adc resolution examples pwm frequency effective resolution (khz) max count (bits) 2.5 3980 ? 12 4 2480 >11 8 1230 >10 18 535 >9 25 380 >8 external timing capacitor in order to maximize the useful input voltage range and effective resolution of the adc, it is necessary to carefully select the value of the external timing capacitor. for a given capacitance value, c nom , the peak ramp voltage is given by: v c max = i const t pwm t crst () c nom where i const is the nominal current source value of 10.5 m a and t crst is the pwmsync pulsewidth. in selecting the capacitor value, however, it is necessary to take into account the tolerance of the capacitor and the variation of the current source value. to ensure that the full input range of the adc is utilized, it is necessary to select the capacitor so that at the maximum capaci- tance value and the minimum current source output, the ramp voltage will charge to at least 3.5 v. as a result, assuming 10% variations in both the capacitance and current source, the nominal capacitance value required at a given pwm period is: c nom = (0.9 i const )( t pwm t crst ) (1.1) (3.5) the largest standard value capacitor that is less than this calcu- lated value is chosen. table iii shows the appropriate standard capacitor value to use for various pwm switching frequencies assuming 10% variations in both the current source and ca- pacitor tolerances. if required, more precise control of the ramp voltage is possible by using higher precision capacitor compo- nents, an external current source and/or series or parallel timing capacitor combinations. table iii. timing capacitor selection pwm frequency timing capacitor (khz) (pf) 2.5C3.0 820 3.0C3.6 680 3.6C4.3 560 4.3C5.2 470 5.2C6.2 390 6.2C7.3 330 7.3C9.0 270 9.0C10.9 220 10.9C13.2 180 13.2C15.8 150 15.8C19.6 120 19.6C23.4 100 23.4C28.2 82 auxiliary pwm timers overview the two auxiliary pwm timers can be used to produce analog signal outputs when configured as pwm dacs. this allows the admc330 to generate a reference for power factor correction and supply an analog reference for other systems in the applica- tion. they can also be used as supplementary pwm outputs for other control circuits. the pwm timers generate two fixed frequency edge-based variable duty cycle pwm signals. the pwm frequency is 1/256 times hclk, or 39 khz. the duty cycle is based on a user-supplied 8-bit value loaded into the aux0 and aux1 registers. the timer output can range from 0% to 99.6%, where the num- ber written to the register represents the high time. the values are updated as soon as new values are written in the registers: if the value is smaller than the present counter value the output goes low, otherwise it stays high. on reset , the aux0 and aux1 registers are cleared to zero and remain at zero until a new value is written. pwm dac equation the pwm output must be filtered in order to produce a low frequency analog signal between 0 v to 4.98 v dc. for example, a 2-pole filter with a 1.2 khz cut off frequency will sufficiently attenuate the pwm carrier. figure 7 shows how the filter would be applied.
admc330 C11C rev. 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 piodir piodata (read/write) pioflag (read-only) piointen (write-only) 1 = output 0 = input 1 = output 0 = input 1 = hi 0 = low 1 = enable interrupt 0 = disable interrupt 1 = interrupt flagged 0 = no interrupt pio0 pio7 figure 8. configuration of pio registers c1 c2 r1 r2 r1 = r2 = 13k v c1 = c2 = 10nf pwmdac figure 7. auxiliary pwm output filter programmable digital input/output the admc330 has eight programmable digital i/o (pio) pins: pio0Cpio7. each pin can be individually configurable as either an input or an output. input pins can also be used to generate interrupts. the pio pins are configured as input or output by setting the appropriate bits in the piodir register, as shown in figure 8. the read/write register piodata is used to set the state of an output pin or read the state of an input pin. writing to piodata affects only the pins configured as outputs. the default state, after an admc330 reset, is that all pio are configured as inputs. any pin can be configured as an independent edge triggered interrupt source. the pin must first be configured as an input and then the appropriate bit must be set in the piointen register. a peripheral interrupt is generated when the input level changes on any pio pin configured as an interrupt source. a pio interrupt sets the appropriate bit in the pioflag register. the dsp peripheral interrupt service routine (isr) must read the pioflag registers to determine which pio pin was the source of the pio interrupt. reading the pioflag register will clear it. watchdog timer overview the watchdog timer can be used to reset the dsp and peripher- als in the event of a software error hanging the processor. the watchdog timer is enabled by writing a value to the watchdog timer register. in the event of the code hanging the counter will count down from its initial value to zero and the watchdog timer hardware will force a dsp and peripheral reset. in normal operation a section of dsp code will write to the timer register to reset the counter to its initial value preventing it from reach- ing zero. dsp core architecture overview figure 9 is a block diagram of the admc330 processor core and system peripherals. the processor contains three indepen- dent computational units: the alu, the multiplier/accumulator (mac) and the shifter. the computational units process 16-bit data directly and have provisions to support multiprecision computations. the alu performs a standard set of arithmetic and logic operations; division primitives are also supported. the mac performs single-cycle multiply, multiply/add and multiply/ subtract operations with 40 bits of accumulation. the shifter performs logical and arithmetic shifts, normalization, denormali- zation and derive exponent operations. the shifter can be used to efficiently implement numeric format control including multi- word and block floating-point representations. the internal result (r) bus directly connects the computational units so that the output of any unit may be the input of any unit on the next cycle.
admc330 C12C rev. 0 output regs input regs output regs input regs output regs input regs data address generator #1 data address generator #2 instruction register program sequencer program rom 2k 3 24 program sram 2k 3 24 data sram 1k 3 16 flags pma bus dma bus pmd bus dmd bus 14 14 24 16 bus exchange companding circuitry control logic timer transmit reg receive reg serial port 1 transmit reg receive reg serial port 0 5 5 16 r bus alu mac shifter figure 9. dsp core block diagram a powerful program sequencer and two dedicated data address generators ensure efficient delivery of operands to these compu- tational units. the sequencer supports conditional jumps, sub- routine calls and returns in a single cycle. with internal loop counters and loop stacks, the admc330 executes looped code with zero overhead; no explicit jump instructions are required to maintain the loop. two data address generators (dags) provide addresses for simultaneous dual operand fetches (from data memory and program memory). each dag maintains and updates four address pointers. whenever the pointer is used to access data (indirect addressing), it is post-modified by the value of one of four possible modify registers. a length value may be associated with each pointer to implement automatic modulo addressing for circular buffers. efficient data transfer is achieved with the use of five internal buses: program memory address (pma) bus program memory data (pmd) bus data memory address (dma) bus data memory data (dmd) bus result (r) bus program memory can store both instructions and data, permit- ting the admc330 to fetch two operands in a single cycle, one from program memory and one from data memory. the admc330 can fetch an operand from on-chip program memory and the next instruction in the same cycle. the admc330 can respond to interrupts. there can be internal interrupts generated by the timer, the serial ports (sports), and software or peripheral interrupts generated by the pio or pwm. there is also a master reset signal. the two serial ports provide a complete synchronous serial interface with optional companding in hardware and a wide variety of framed or frameless data transmit and receive modes of operation. each port can generate an internal programmable serial clock or accept an external serial clock. boot circuitry provides for automatically loading on-chip pro- gram memory from the data input and output pins on sport1. sport1 can be alternatively configured as an input flag, output flag or two additional interrupt sources. a programmable interval timer generates periodic interrupts. a 16-bit count register (tcount) is decremented every n pro- cessor cycles, where n-l is a scaling value stored in an 8-bit regis- ter (tscale). when the value of the count register reaches zero, an interrupt is generated and the count register is reloaded from a 16-bit period register (tperiod). the admc330 instruction set provides flexible data moves and multifunction (one or two data moves with a computation) instructions. every instruction can be executed in a single pro- cessor cycle. the admc330 assembly language uses an alge- braic syntax for ease of coding and readability. a comprehensive set of development tools supports program development.
admc330 C13C rev. 0 serial ports the admc330 incorporates two complete synchronous serial ports (sport0 and sport1) for serial communications and multiprocessor communication. following is a brief list of the capabilities of the admc330 sports. refer to the adsp-2100 family users manual for further details. sports are bidirectional and have a separate, double-buff- ered transmit and receive section. sports can use an external serial clock or generate their own serial clock internally. sports have independent framing for the receive and trans- mit sections. sections run in a frameless mode or with frame synchronization signals internally or externally generated. frame sync signals are active high or inverted, with either of two pulsewidths and timings. sports support serial data word lengths from 3 to 16 bits and provide optional a-law and m -law companding according to ccitt recommendation g.711. sport receive and transmit sections can generate unique interrupts on completing a data word transfer. sports can receive and transmit an entire circular buffer of data with only one overhead cycle per data word. an interrupt is generated after a data buffer transfer. sport0 has a multichannel interface to selectively receive and transmit a 24- or 32-word, time-division multiplexed, serial bit stream. sport1 can be configured to have two external interrupts ( irq0 and irq1 ) and the flag in and flag out signals. the internally generated serial clock may still be used in this configuration. sport1 has two multiplexed data receive pins dr1a and dr1b. dr1a is automatically selected at boot up and is the default input for the serial rom. for uart communication dr1b is selected. a full description of the sport timing parameters is given in figure 14. interrupts the interrupt controller allows the processor core to respond to nine possible interrupts with the minimum of overhead. the admc330 supports eight internal interrupts from the timer, the two serial ports, the software interrupts, and the software forced power-down interrupt. the ninth interrupt, irq2 on the 2171 core, is actually wired internally to the admc330 periph- eral interrupt sources. this peripheral interrupt is generated on a pwm trip, pwmsync (once each pwm cycle), or from any of the eight pio ports. the pwmsync interrupt is triggered by a low to high transition on the pwmsync pulse. the pwmtrip interrupt is triggered on a high-to-low transi- tion on the pwmtrip pin. a pio interrupt is detected on any change of state (high-to-low or low-to-high) on the pio line. when a peripheral interrupt is detected, a flag bit is set in the irqflag register for pwmsync and pwmtrip or in the pioflag register for a pio interrupt, and the irq2 line is pulled low. the irq2 line is held low until all pending periph- eral interrupts are acknowledged. execution then begins at the irq2 (or peripheral) interrupt vector location (0x004). soft- ware at this location further determines if the source of the interrupt was a pwm trip, pwymsync, or pio, by reading the irqflag register, and vectors to the appropriate interrupt vector location. if more than one interrupt occurs simultaneously, the higher priority interrupt service routine is executed. the software at location 0x004 is provided in a default interrupt vector table that is created by the on-chip boot rom code. therefore, a user need only put the interrupt service routine for the given interrupt at the interrupt vector location shown in table iv. reading the irqflag register clears the pwmtrip and pwmsync bits and acknowledges the interrupt, thus allowing further interrupts when the interrupt service routine exits. when the irqflag register is read, it is saved in a data memory variable so the user interrupt service routines can check to see if there were simultaneous pwmtrip and pwmsync interrupts. a users pio interrupt service routine must read the pioflag register to determine which pio port is the source of the inter- rupt. reading the pioflag register clears all bits in the register and acknowledges the interrupt, thus allowing further interrupts when the interrupt service routine exits. all interrupts are internally prioritized and individually maskable (except for power-down). the interrupt vector locations and priorities for all interrupts are listed in table iv. interrupts can be masked or unmasked with the imask register. individual interrupt requests are logically anded with the bits in imask; the higher priority unmasked interrupt is then selected. the software forced power-down interrupt is nonmaskable. the admc330 masks all interrupts for one instruction cycle follow- ing the execution of an instruction that modifies the imask register. this does not affect autobuffering. table iv. interrupt priority and interrupt vector addresses interrupt source of interrupt vector location (hex) reset 0x0000 (reserved) pwmtrip and power-down* 0x002c (highest priority) pwmsync* 0x000c pio* 0x0008 sport0 transmit 0x0010 sport0 receive 0x0014 software interrupt 1 0x0018 software interrupt 0 0x001c sport1 transmit or irq1 0x0020 sport1 receive or irq0 0x0024 timer 0x0028 (lowest priority) *peripheral interrupt ( irq2 ) starts execution at 0x004, software further vector to 0x002c, 0x000c or 0x0008 as appropriate.
admc330 C14C rev. 0 the interrupt control register, icntl, allows the external inter- rupts to be either edge- or level-sensitive. since the irq2 line is a combination of all peripheral interrupt sources, they will all be set to edge- or level-sensitive. level-sensitive is recommended when using both pio and pwm interrupts together. when simultaneous pio and pwm interrupts occur, the irq2 line is brought low and held low until both the pio and pwm inter- rupts are acknowledged. if interrupts are set to edge-sensitive only, one irq2 interrupt will occur for simultaneous interrupts and it is incumbent on the interrupt service routine to check for simultaneous interrupts. if, however, interrupts are set to level- sensitive, all simultaneous interrupts are detected because irq2 is held low until all interrupts are acknowledged. the icntl register also allows interrupts to be sequentially processed or nested with higher priority interrupts taking prece- dence. since the peripheral interrupts are all on the same level ( irq2 ), they can only be nested by manually unmasking them with the imask register from inside the interrupt service routine. the ifc register is a write-only register, which is used to force and clear interrupts from software. on-chip stacks preserve the processor status and are automati- cally maintained during interrupt handling. the stacks are 12 levels deep to allow interrupt nesting. a set of shadow registers are provided for single context switching. power-down the admc330 can be put in a lower power state from software control by setting the pdforce bit in the sport1 autobuffer/ power-down register. this causes a power-down interrupt; execution then continues at the power-down interrupt vector location 0x002c. the power-down interrupt vector location is shared with the pwmtrip interrupt, thus if a different inter- rupt service routine is required, the vector must be changed prior to setting the pdforce bit. the power-down interrupt service routine must perform a peripheral reset prior to entering power-down to shut down the pwm signals to the motor. the interrupt service routine can then perform any housekeeping operations prior to executing an idle instruction, after which the admc330 is in power-down mode. the only way out of power-down is to perform a hardware reset of the admc330. clock signals the admc330 can be clocked by either a crystal or a ttl- compatible clock signal. the clkin input cannot be halted, changed during operation or operated below the specified frequency during normal operation. if an external clock is used, it should be a ttl-compatible signal running at half the instruction rate. the signal is con- nected to the processors clkin input. when an external clock is used, the xtal input must be left unconnected. the admc330 uses an input clock with a frequency equal to half the instruction rate; a 10 mhz input clock yields a 50 ns processor cycle (which is equivalent to 20 mhz). normally, instructions are executed in a single processor cycle. all device timing is relative to the internal instruction clock rate, which is indicated by the clkout signal when enabled. because the admc330 includes an on-chip oscillator circuit, an external crystal may be used. the crystal should be con- nected across the clkin and xtal pins, with two capacitors connected as shown in figure 10. a parallel-resonant, funda- mental frequency, microprocessor-grade crystal should be used. 10m v clkin xtal figure 10. external crystal connections a clock output (clkout) signal is generated by the processor at the processors cycle rate. reset the reset signal initiates a master reset of the admc330. the reset signal must be asserted during the power-up se- quence to assure proper initialization. reset during initial power-up must be held long enough to allow the internal clock to stabilize. if reset is activated any time after power-up, the clock continues to run and does not require stabilization time. the power-up sequence is defined as the total time required for the crystal oscillator circuit to stabilize after a valid v dd is ap- plied to the processor, and for the internal phase-locked loop (pll) to lock onto the specific crystal frequency. a minimum of 2000 clkin cycles ensures that the pll has locked, but does not include the crystal oscillator start-up time. during this power-up sequence the reset signal should be held low. the reset input contains some hysteresis; however, if you use an rc circuit to generate your reset signal, the use of an external schmitt trigger is recommended. the master reset sets all internal stack pointers to the empty stack condition, masks all interrupts and clears the mstat register. when reset is released, the dsp starts running from the internal rom and the boot loading sequence is performed. if an srom (serial rom) or serial eeprom is connected to sport1 with valid program data, this code is then loaded and execution starts. if a valid device is not detected, then the pro- gram defaults to debug mode with sport1 configured as a uart running at 9600 baud.
admc330 C15C rev. 0 a software controlled full peripheral reset (including the watch- dog timer) is achieved by toggling the dsp fl2 flag from 1 to 0 to 1 again. memory map the admc330 has two types of memory: data memory and program memory. program ram starts at 0x0000, while the program rom area starts at 0x800. the data ram starts at 0x3800 while the peripherals are mapped to a data memory block starting at 0x2000. table v. program memory 0x0000C0x002f interrupt vector table 0x0030C0x07ff user program space 0x0800C0x0bff rom monitor 0x0c00C0x0fff rom math utilities table vi. data memory 0x2000C0x201f peripherals 0x3800C0x3b8f user data space 0x3b90C0x3bff reserved for rom monitor use admc330 registers some registers store values. for example, ax0 stores an alu operand; i4 stores a dag2 pointer. other registers consist of control bits and fields, or status flags. for example, astat contains status flags from arithmetic operations, and fields in dwait control the numbers of wait states for different zones of data memory. a secondary set of registers in all computational units allows a single-cycle context switch. the bit and field definitions for control and status registers are given in the rest of this section, except for imask, icntl and ifc, which are defined earlier in this data sheet. the system control register, timer registers and sport control registers are all mapped into data memory; that is, registers are accessed by reading and writing data memory locations rather than register names. the particular data memory address is shown with each memory-mapped register. biased rounding a new mode allows biased rounding in addition to the normal unbiased rounding. when the biasrnd bit is set to 0, the normal unbiased rounding operations occur. when the biasrnd bit is set to 1, biased rounding occurs instead of the normal unbi- ased rounding. when operating in biased rounding mode all rounding operations with mr0 set to 0x8000 will round up, rather than only rounding odd mr1 values up. for example: mr value before rnd biased rnd result unbiased rnd result 00-0000-8000 00-0001-8000 00-0000-8000 00-0001-8000 00-0002-8000 00-0002-8000 00-0000-8001 00-0001-8001 00-0001-8001 00-0001-8001 00-0002-8001 00-0002-8001 00-0000-7fff 00-0000-7fff 00-0000-7fff 00-0001-7fff 00-0001-7fff 00-0001-7fff this mode only has an effect when the mr0 register contains 0x8000; all other rounding operation work normally. this mode was added to allow more efficient implementation of bit speci- fied algorithms that specify biased rounding, such as the gsm speech compression routines. unbiased rounding is preferred for most algorithms. note: biasrnd bit is bit 12 of the sport0 autobuffer control register. instruction set description the admc330 assembly language instruction set has an algebraic syntax that was designed for ease of coding and read- ability. the assembly language, which takes full advantage of the processors unique architecture, offers the following benefits: the algebraic syntax eliminates the need to remember cryptic assembler mnemonics. for example, a typical arith- metic add instruction, such as ar = ax0 + ay0, resembles a simple equation. every instruction assembles into a single, 24-bit word that can execute in a single instruction cycle. the syntax is a superset adsp-2100 family assembly lan- guage and is completely source and object code compatible with other family members. sixteen condition codes are available. for conditional jump, call, return or arithmetic instructions, the condition can be checked and the operation executed in the same instruction cycle. multifunction instructions allow parallel execution of an arith- metic instruction with up to two fetches or one write to pro- cessor memory space during a single instruction cycle. consult the adsp-2100 family users manual for a complete description of the syntax and an instruction set reference with particular reference to the adsp-2171 device. interrupt enable the admc330 supports an interrupt enable instruction. inter- rupts are enabled by default at reset. the instruction source code is specified as follows: syntax: ena ints; description: executing the ena ints instruction allows all unmasked interrupts to be serviced again. i nterrupt disable the admc330 supports an interrupt disable instruction. the instruction source code is specified as follows: syntax: dis ints; description: reset enables interrupt servicing. executing the dis ints instruction causes all inter- rupts to be masked without changing the contents of the imask register. disabling interrupts does not affect the autobuffer cir- cuitry, which will operate normally whether or not interrupts are enabled. the disable interrupt instruction masks all user interrupts including the power-down interrupt.
admc330 C16C rev. 0 0000000000000000 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 imask irq2 sport0 transmit sport0 receive timer irq0 or sport1 receive irq1 or sport1 transmit software 0 software 1 1 = enable, 0 = disable 0 43 210 icntl irq0 sensitivity irq1 sensitivity irq2 sensitivity 1 = edge 0 = level interrupt nesting 1 = enable, 0 = disable 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ifc 0000000000000000 irq2 sport0 transmit sport0 receive software 1 software 0 sport1 transmit or irq1 sport1 receive or irq0 timer timer sport1 receive or irq0 sport1 transmit or irq1 software 0 software 1 sport0 receive sport0 transmit irq2 interrupt clear interrupt force figure 11. interrupt registers system controller overview the system controller has a number of functions: 1. it decodes the dsp address bus and selects the appropriate peripheral registers. 2. it controls the adc multiplexer select lines. 3. it can enable pwmtrip and pwmsync interrupts. 4. it controls the sport0 multiplexer select lines. 5. it resets the peripherals and control registers on hardware, software or watchdog initiated resets. 6. it handles interrupts generated by the peripherals and generates a dsp core interrupt signal irq1 ( irq2 ). 7. it can be used to control the peripheral test modes. dsp interface and memory map all data transferred between the dsp core and the peripherals is controlled by the system controller. the peripheral registers, with the exception of the adc read registers, are right justified, i.e., the lsb of each register is connected to the lsb of the 16-bit dsp dm data bus dspd [15:0]. any unused msbs are connected to zeros. the admc peripheral registers are memory mapped to 32 words on the dsp address space, starting at dsp memory location 0x2000: 1. adc read registers (0C3) 2. pio registers (4C7) 3. pwm set-up registers (8C11) 4. pwm data registers (12C15) 5. aux pwm data registers (16, 17) 6. system registers (21C24)
admc330 C17C rev. 0 table vii. peripheral register map address offset (hex) (decimal) name bits used function 0x2000 0 adc1 [4..15] adc results for v1 0x2001 1 adc2 [4..15] adc results for v2 0x2002 2 adc3 [4..15] adc results for v3 0x2003 3 adcaux [4..15] adc results for vaux 0x2004 4 piodir [0..7] pio pins direction setting 0x2005 5 piodata [0..7] pio pins input/output data 0x2006 6 piointen [0..7] pio pins interrupt enable 0x2007 7 pioflag [0..7] pio pins interrupt status 0x2008 8 pwmtm [0..11] pwm period 0x2009 9 pwmdt [0..6] pwm deadtime 0x200a 10 pwmpd [0..6] pwm pulse deletion time 0x200b 11 pwmgate [0..8] pwm gate drive configuration 0x200c 12 pwmcha [0..11] pwm channel a pulsewidth 0x200d 13 pwmchb [0..11] pwm channel b pulsewidth 0x200e 14 pwmchc [0..11] pwm channel c pulsewidth 0x200f 15 pwmseg [0..8] pwm segment select 0x2010 16 aux0 [0..7] aux pwm output 1 0x2011 17 aux1 [0..7] aux pwm output 2 0x2012 18 not used 0x2013 19 not used 0x2014 20 not used 0x2015 21 modectrl [0..15] system control register 0x2016 22 sysstat [0..1] system status 0x2017 23 irqflag [0..2] interrupt status 0x2018 24 wdtimer [0..15] watchdog timer 0x2019..f 25..31 not used multiplexer, pwm interrupts and sport1 control the adc, the sport1 peripherals and the pwm interrupts are configured using the modectrl register. 1. two bits control the adc aux channel selection: adcmux0..1. 2. two bits can enable/disable the pwmtrip and pwmsync interrupts. 3. two bits control the spo rt1 uart and dr1a/b multiplexer. the pwm interrupt enable bits are masking bits rather than set/reset bits. therefore, before enabling these interrupts any pending interrupts can be cleared by reading the irqflag register. setting the uarten bit connects dr1 to the rfs1 input, which allows sport1 to be used as a uart port. the dr1sel bit selects either pins dr1a or dr1b. the reset condition for all bits in this register is zero. admc330 sport1 dr1 tfs1 rfs1 dt1 dr1a dr1b dt1 sclck1 tfs1 rfs1 sclck1 uart enable dr1b select default switch position shown figure 12. internal multiplexing of sport1 pins the dsp and peripheral reset functions a full system reset of the admc330 is achieved by pulling the reset pin low (for > 5 clock cycles when running, or > 2000 clock cycles on power-up). this resets the dsp core and all peripherals including the watchdog timer. the sysstat register indicates the fault status of the admc330 after a pwmtrip interrupt or a watchdog reset: 1. the status of the pwmtrip pin (active low). 2. the status of the watchdog flag register (this is not reset on a dsp reset ). 3. the status of the pwmpol pin. when one of the peripherals generates an interrupt, the dsp irq2 line is pulled low and a flag bit is set in the irqflag register for pwmsync and pwmtrip or in the pioflag register for a pio interrupt. the dsp can read these registers to determine the source of the interrupt. when the irqflag register is read, the pwmsync and pwmtrip bits are cleared to zero. reading the pioflag register clears all the bits in this register to zero. when both registers are cleared, the irq2 line is set high again. the reset condition for all bits in this regis- ter is zero.
admc330 C18C rev. 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 modectrl (read/write) adc mux control 00 = vaux0 01 = vaux1 10 = vaux2 11 = vaux3 pwmtrip interrupt enable pwmsync interrupt enable sport1 data receive select sport1 mode select 1 = enable 0 = disable 1 = dr1b 0 = dr1a 1 = uart 0 = sport 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 sysstat pwmtrip pin status watchdog status pwmpol pin status 1 = hi 0 = lo 1 = reset occurred 0 = normal 1 = hi 0 = lo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 irqflag pwmtrip interrupt status pwmsync interrupt status 1 = pending 0 = cleared figure 13. configuration of modectrl, sysstat and irqflag registers
admc330 C19C rev. 0 timing parameters serial ports frequency 12.5 mhz 13.0 mhz 13.824 mhz* dependency parameter min max min max min max min max unit timing requirement: t sck sclk period 80 76.9 72.3 100 ns t scs dr/tfs/rfs setup before sclk low 8 8 8 15 ns t sch dr/tfs/rfs hold after sclk low 10 10 10 20 ns t scp sclk in width 30 28 28 40 ns switching characteristic: t cc clkout high to sclk out 20 35 19.2 34.2 18.1 33.1 0.25 t ck 0.25 t ck + 20 ns t scde sclk high to dt enable 0 0 0 0 ns t scdv sclk high to dt valid 20 20 20 30 ns t rh tfs/rfs out hold after sclk high 0 0 0 0 ns t rd tfs/rfs out delay from sclk high 20 20 20 30 ns t scdh dt hold after sclk high 0 0 0 0 ns t tde tfs (alt) to dt enable 0 0 0 0 ns t tdv tfs (alt) to dt valid 18 18 18 25 ns t scdd sclk high to dt disable 25 25 25 40 ns t rdv rfs (multichannel, frame delay zero) 20 20 20 30 ns to dt valid *maximum serial port operating frequency is 13.824 mhz for all processor speed grades except the 12.5 mhz adsp-2101 and 13.0 mh z adsp-2111. t cc t cc t sch t scs t rd t rh t scp t scp t sck t scdv t scde t scdh t scdd t tde t tdv t rdv clkout sclk dr rfs in tfs in rfs out tfs out dt tfs (alternate frame mode) rfs (multichannel mode, frame delay 0 ( mfd = 0 )) figure 14. serial ports
admc330 C20C rev. 0 outline dimensions dimensions shown in inches and (mm). c3043C2.5C9/97 printed in u.s.a. 80-lead plastic thin quad flatpack (tqfp) (st-80) seating plane 0.063 (1.60) max 0.030 (0.75) 0.020 (0.50) 0.004 (0.10) max 0.057 (1.45) 0.053 (1.35) 0.006 (0.15) 0.002 (0.05) 0.014 (0.35) 0.010 (0.25) 0.640 (16.25) 0.620 (15.75) 0.553 (14.05) 0.549 (13.95) 0.553 (14.05) 0.549 (13.95 0.640 (16.25) 0.620 (15.75) 1 20 21 41 40 60 61 80 top view (pins down) 0.486 (12.35) typ 0.486 (12.35) typ 0.029 (0.73) 0.022 (0.57)


▲Up To Search▲   

 
Price & Availability of ADMC330BST

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X